<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%--
  Created by IntelliJ IDEA.
  User: w1093
  Date: 2020/12/25
  Time: 20:03
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>学生管理系统</title>
</head>
<body>
<%--首页登录进行一个JSTL判断,如果在服务器的会话域中有登陆者的相关信息的话,就可以不用进行登录环节--%>
<c:if test="${sessionScope.username eq null}">
    <a href="${pageContext.request.contextPath}/login.jsp">请登录</a>
</c:if>
<c:if test="${sessionScope.username ne null}">
    <a href="${pageContext.request.contextPath}/addStudent.jsp">添加学生</a>
    <a href="${pageContext.request.contextPath}/listStudentServelt">查看学生</a>
</c:if>
</body>
</html>
